﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace VSM.Business.Service
{
    public partial class TestForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable tb = new DataTable();
            tb.Columns.Add("Code");
            tb.Columns.Add("Name");

            tb.Rows.Add("-1", "Oi Coc Xoai");
            tb.Rows.Add("1", "Mia man cam");
            tb.Rows.Add("2", "Sori dua buoi");
            tb.Rows.Add("3", "Sau rieng");

            cboCountry.DataSource = tb;
            cboCountry.DataTextField = "Name";
            cboCountry.DataValueField = "Code";
            cboCountry.DataBind();
        }
    }
}